package com.web.expspringboot.service;

import com.web.expspringboot.entity.CartSt;
import com.web.expspringboot.entity.ProductSt;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CartService {
    List<CartSt> getCart();

    boolean addCart(long productId);

    boolean deleteCart(long productId);

    //-3购买自己的商品 -2商品已被购买 -1未知错误 0成功
    int purchaseProduct(long productId);

    List<ProductSt> getCartProducts();
}
